Skip to content

fix: upgrade Fastify to v5 to resolve CVE-2026-25223#1346

Merged
jbroma merged 2 commits intomainfrom
fix/fastify-transitive-vulnerability
Feb 26, 2026
Merged

fix: upgrade Fastify to v5 to resolve CVE-2026-25223#1346
jbroma merged 2 commits intomainfrom
fix/fastify-transitive-vulnerability

Conversation

@jbroma
Copy link
Member

@jbroma jbroma commented Feb 26, 2026

Summary

  • Upgrade fastify from v4 to v5.7.2+ in @callstack/repack-dev-server to resolve CVE-2026-25223 (HIGH severity — body validation bypass via malformed Content-Type header)
  • Upgrade companion packages: @fastify/middie ^9.0.0, @fastify/sensible ^6.0.0, fastify-plugin ^5.0.0, fastify-favicon ^5.0.0
  • Replace deprecated FastifyLoggerInstance type with FastifyBaseLogger
  • Fix Pino logger argument order in WebSocketMessageServer.ts ((obj, msg) instead of (msg, obj))

Closes #1341

Test plan

  • pnpm build — dev-server compiles successfully
  • pnpm typecheck — no type errors
  • pnpm lint:ci — linting passes
  • pnpm test — all 9 task suites pass

🤖 Generated with Claude Code

@changeset-bot
Copy link

changeset-bot bot commented Feb 26, 2026

🦋 Changeset detected

Latest commit: 0bb6f69

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@callstack/repack-dev-server Patch
@callstack/repack Patch
@callstack/repack-plugin-expo-modules Patch
@callstack/repack-plugin-nativewind Patch
@callstack/repack-plugin-reanimated Patch
@callstack/repack-init Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Feb 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
repack-website Building Building Preview, Comment Feb 26, 2026 11:52am

Request Review

@jbroma jbroma merged commit aaf3cc9 into main Feb 26, 2026
6 checks passed
@jbroma jbroma deleted the fix/fastify-transitive-vulnerability branch February 26, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fastify transitive vulnerability with repack

1 participant